package org.apache.http.entity.mime;

import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.List;

class d extends a {
    private final List b;

    public d(String str, Charset charset, String str2, List list) {
        super(str, charset, str2);
        this.b = list;
    }

    public List a() {
        return this.b;
    }

    protected void a(b bVar, OutputStream outputStream) throws IOException {
        c c = bVar.c();
        a.a(c.a("Content-Disposition"), this.a, outputStream);
        if (bVar.b().getFilename() != null) {
            a.a(c.a("Content-Type"), this.a, outputStream);
        }
    }
}
